<template>

   <div>
       <el-page-header @back="goBack" content="识别记录" title="返回"></el-page-header>
      <h3>识别结果：</h3>
      {{comment}}
      <el-table :data="comment.result">
        <el-table-column label="精确度" align="center" prop="score"></el-table-column>
        <el-table-column label="分类" align="center" prop="root"></el-table-column>
        <el-table-column label="关键字" align="center" prop="keyword"></el-table-column>
      </el-table>
    </div>
</template>

<script>
export default {
    data(){
        return{
            form:{},
            comment:{}
        } 
    },
    methods:{
        goBack(){
            this.$router.go(-1)
        }
    },
    created(){
    // 页面加载出来的时候，将路由中的参数拿到，放到this.form 中
        this.form = this.$route.query,
        this.comment= JSON.parse(this.form.comment)
   }


}
</script>

<style lang="sass" scoped>

</style>
